package com.zpp.wedding_admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 朱盼盼
 * @since 2022-12-29
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CameraWork对象", description="")
public class CameraWork implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "摄影作品id")
    @TableId(value = "work_id", type = IdType.AUTO)
    private Integer workId;

    @ApiModelProperty(value = "摄影师id")
    private Integer cameramanId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "地点标签id")
    private Integer locationLabelId;

    @ApiModelProperty(value = "地点id")
    private Integer locationId;

    @ApiModelProperty(value = "评论")
    private Integer commentCount;

    @ApiModelProperty(value = "帖子内容")
    private String content;

    @ApiModelProperty(value = "作品价格")
    private Integer price;

    @ApiModelProperty(value = "是否通过")
    private Integer isPass;

    @ApiModelProperty(value = "是否打折")
    private Integer isAcount;

    @ApiModelProperty(value = "实际价格")
    private Integer actualPrice;

    @ApiModelProperty(value = "喜欢人数")
    private Integer goodNum;

    @ApiModelProperty(value = "收藏人数")
    private Integer collectNum;

    @ApiModelProperty(value = "标题")
    private String header;

    @ApiModelProperty(value = "审批理由")
    private String reason;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户")
    private User user;

    @TableField(exist = false)
    @ApiModelProperty(value = "标签")
    private LocationLable locationLable;

    @TableField(exist = false)
    @ApiModelProperty(value = "拍摄地点")
    private CameraLocation cameraLocation;

    @Override
    public String toString() {
        return "CameraWork{" +
                "workId=" + workId +
                ", cameramanId=" + cameramanId +
                ", userId=" + userId +
                ", locationLabelId=" + locationLabelId +
                ", locationId=" + locationId +
                ", commentCount=" + commentCount +
                ", content='" + content + '\'' +
                ", price=" + price +
                ", isPass=" + isPass +
                ", isAcount=" + isAcount +
                ", actualPrice=" + actualPrice +
                ", goodNum=" + goodNum +
                ", collectNum=" + collectNum +
                ", header='" + header + '\'' +
                ", reason='" + reason + '\'' +
                ", isDelete=" + isDelete +
                ", gmtCreate=" + gmtCreate +
                ", gmtUpdate=" + gmtUpdate +
                ", user=" + user +
                ", locationLable=" + locationLable +
                ", cameraLocation=" + cameraLocation +
                '}';
    }
}
